package net.hn.hnms.biz.api.safety.monitor.fegin;

import net.hn.hnms.biz.api.mine.model.AlarmMessageItemVo;
import net.hn.hnms.biz.api.feign.model.DataStateVo;
import net.hn.hnms.biz.api.safety.monitor.model.BaseSensorCoordDto;
import net.hn.hnms.sys.common.core.domain.R;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.ArrayList;
import java.util.List;

/**
 * 智呈物联 pan'sx
 * 2022/9/6 21:23
 * 1.0 version
 */
@Component
public class RemoteMonitorServiceFallback implements RemoteMonitorService {

    @Override
    public R<List<AlarmMessageItemVo>> alarmMessageItem() {
        return R.fail("查询报警信息失败");
    }
    @Override
    public R<List<DataStateVo>> getMaxTime(String mineCode, String companyCode) {
        return R.fail("安全监控数据获取最大时间失败");
    }

    /**
     * 获取安全监控BaseSensorTable表所有信息
     */
    @Override
    public List<BaseSensorCoordDto> getBaseSensorTableAllList(@RequestParam("mineCode") String mineCode, @RequestParam("companyCode")  String companyCode) {
        return new ArrayList<>();
    }
}
